package com.yjf.ljr.dataclass;

import java.io.Serializable;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.yjf.ljr.parser.DataClass;

public class LoginDataClass extends DataClass {

	@Expose
	// 用户id
	public String userId;
	@Expose
	// 用户姓名
	public String realName;
	@Expose
	// 用户类型
	public String userType;
//	@Expose
//	public PermissionCheckInfo permission;

	@Override
	public boolean copy(DataClass valueClass) {
		// TODO Auto-generated method stub
		if (valueClass == null || !(valueClass instanceof LoginDataClass)) {
			return false;
		}
		this.code = ((LoginDataClass) valueClass).code;
		this.msg = ((LoginDataClass) valueClass).msg;
		this.userId = ((LoginDataClass) valueClass).userId;
		this.realName = ((LoginDataClass) valueClass).realName;
		this.userType = ((LoginDataClass) valueClass).userType;
//		this.permission = ((LoginDataClass) valueClass).permission;
		return true;
	}

	public static class PermissionCheckInfo implements Serializable {

		private static final long serialVersionUID = 1L;
		@Expose
		// 融资人
		public String borrowing;
		@Expose
		// 机构/人员
		public String guaranteeCenter;
		@Expose
		// 机构/人员
		public String guaranteeOperator;
		@Expose
		// 投资人
		public String invest;
		@Expose
		// 经纪人
		public String investorManager;
		@Expose
		// 账户总览
		public String userHome;
	}

}
